#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int cal(int* arr, int n)
{
	int* p = arr;
	int i = 0;
	int sum = 0;
	for (i = 0; i < 6; i++)
	{
		sum += *(p + i);
	}
	return sum;
}

int main()
{

	int arr[100] = { 0 };
	int n = 0;
	scanf("%d", &n);
	for (int i = 0; i < n; i++)
	{
		scanf("%d", &arr[i]);
	}
	int sum = cal(arr, n);
	printf("%d", sum);
	return 0;
}